const {sequelize,Sequelize} = require('../../database/init')

//试卷
const TestPaper = sequelize.define('testPaper',{
    tp_name:{
        type:Sequelize.STRING,
        allowNull:false,
    },
    tp_description:{
        type:Sequelize.STRING,
        allowNull:true
    }
})
//试题
const TestQuestion = sequelize.define('testQuestion',{
    id:{
        type:Sequelize.INTEGER,
        autoIncrement:true,
        primaryKey:true,
        unique:true
    }

})


module.exports = {
    TestPaper,
    TestQuestion

}